package zz.demo.springCloud.wechat.service;

import me.chanjar.weixin.common.exception.WxErrorException;
import zz.demo.springCloud.wechat.entity.WeChatApp;
import zz.demo.springCloud.wechat.vo.WeChatAppVO;

import java.util.List;

/**
 * Created by zhangzheng on 2017-11-9.
 */
public interface WeChatAppService {
    /*
        对外调用接口，过滤查询结果。
     */
    WeChatApp findByAccessPath(String accessPath) throws WxErrorException;
    void updateByWeChatAppAndAccessPath(WeChatAppVO vo, String accessPath) throws WxErrorException;
    void updateApp(WeChatAppVO vo);
    void addApp(WeChatAppVO vo);
    /*
        数据库中拉取全部wechatApp信息。
     */
    List<WeChatApp> findAllAndCheck();
}
